﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BlockMain_Class.Helper
{
    public static class AddSpeeds
    {

        public static MongodbHelpers<Speed> speed = new MongodbHelpers<Speed>();
        /// <summary>
        /// 添加动态
        /// </summary>
        /// <returns></returns>
        public static string Add(string detail, int sort, string rid)
        {
            Speed s = new Speed();
            s.CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            s.Detail = detail;
            s.Sort = sort;
            s.Record = rid;
            speed.Insert(s);
            return "ok";
        }


    }
}
